package com.financing.platform.dto;

import java.util.Comparator;
import java.util.Date;

/**
 * @author Mars
 * @createDate 2014年7月10日
 */
public class OrderFlowDTO extends BaseDTO implements Comparator<OrderFlowDTO> {

	
	/**
	 * @Fields serialVersionUID : 
	 */
	
	private static final long serialVersionUID = 850014098233911021L;

	/**
	 * 流水ID
	 */
	private Integer id;
	
	/**
	 * 订单ID
	 */
	private String orderId;
	
	/**
	 * 订单状态
	 */
	private Integer oStatus;
	
	/**
	 * 订单后端状态
	 */
	private Integer oBackStatus;
	
	/**
	 * 流水日期
	 */
	private Date flowDate;

	/**
	 * 流水日期
	 */
	private String flowDateStr;
	
	/**
	 * 备注
	 */
	private String remark;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Integer getoStatus() {
		return oStatus;
	}

	public void setoStatus(Integer oStatus) {
		this.oStatus = oStatus;
	}

	public Date getFlowDate() {
		return flowDate;
	}

	public void setFlowDate(Date flowDate) {
		this.flowDate = flowDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getoBackStatus() {
		return oBackStatus;
	}

	public void setoBackStatus(Integer oBackStatus) {
		this.oBackStatus = oBackStatus;
	}

	public String getFlowDateStr() {
		return flowDateStr;
	}

	public void setFlowDateStr(String flowDateStr) {
		this.flowDateStr = flowDateStr;
	}

	@Override
	public int compare(OrderFlowDTO p1, OrderFlowDTO p2) {

		int flag=p1.getId().compareTo(p2.getId());

		return flag;
	}
}
